<?php
namespace Home\Controller;
use Think\Controller;

//主页控制器
class IndexaiController extends Controller {
	

    //主页展示散工列表
    public function index(){
         //主页展示散工列表
        $job_list = D("job")->jobLists();
        //dump($job_list);
        $this->assign('job_list',$job_list);

        
        // 获取当前账户的登录信息
        //$info = M('users')->field('loginnum')->where(array('id' => parent::$userid))->find();

        //$this->assign('info', $info);
        
        //主页显示网赚项目列表
        $project_list = D("Project")->projectLists();
        //dump($project_list);
   
        $this->assign('project_list',$project_list);
       

         //主页显示活动列表
        $activity_list = D("Activity")->activityLists();
        //dump($activity_list);
        $this->assign('activity_list',$activity_list);
        

        //主页显示p2p项目列表
        $pp_list = D("Pp")->ppLists();
        //dump($pp_list);
   
        $this->assign('pp_list',$pp_list);

        //主页显示p2p项目列表
        $company_list = D("Company")->companyLists();
        //dump($pp_list);
   
        $this->assign('company_list',$company_list);




        $this->display();

	}
	//语言切换 已经实现
	public function lang(){
    $this->assign('message', L('message'));
    $this->display();
    }


    protected function _initialize() {
        // 系统开关
   /*     if (!C('TOGGLE_WEB_SITE')) {
            $this->error('站点已经关闭，请稍后访问~');
        }
   
*/
    }

  
}